package cn.j3code.demo1liyineng;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("student")
public class Student {
    private Long id;
    private String name;
    private String gender;
    private String grade;
    private Long classroomId;  // 修改为 classroomId

    // 构造方法
    public Student() {}

    public Student(Long id, String name, String gender, String grade, Long classroomId) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.grade = grade;
        this.classroomId = classroomId;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public Long getClassroomId() {
        return classroomId;
    }

    public void setClassroomId(Long classroomId) {
        this.classroomId = classroomId;
    }
}

